import request from '@/utils/request'


//获取排班数据
export function getBatchList(query) {
  return request({
    url: '/business/shiftSchedule/list',
    method: 'get',
    params: query
  })
}

// 批量排班
export function addBatchUpdate(data) {
  return request({
    url: '/business/shiftSchedule/batchSchedule',
    method: 'post',
    data: data
  })
}

//表格编辑排班
export function updateClasses(data) {
  return request({
    url: '/business/shiftSchedule/editSchedule',
    method: 'post',
    data: data
  })
}

//发布排班
export function postClasses(query) {
  return request({
    url: '/business/shiftSchedule/isPub',
    method: 'post',
    data: query
  })
}

